package cube.orekaria.com;

import android.graphics.Point;

/**
 * Our hero is by far the best suited for this dangerous cube
 * 
 * @author Naok
 * 
 */
public class Hero {
	public Point Location;
	private int _lifePoints;
	public boolean IsExitFound;

	/**
	 * Class constructor
	 */
	public Hero() {
		_lifePoints = 15;
		IsExitFound = false;
	}

	/**
	 * Returns our hero remaining life points
	 * 
	 * @return the life points
	 */
	public int getLifePoints() {
		return _lifePoints;
	}

	public void damageReceived() {
		_lifePoints -= 1;

	}

	/**
	 * Returns a value that reports if our hero is dead or alive
	 * 
	 * @return true if dead, false if alive
	 */
	public boolean isDead() {

		return _lifePoints == 0;
	}
}
